package com.stone.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Provider implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4486171927724261207L;
	private Long id;
	private String name;
	private String username;
	private String password;
	private String province;
	private String description;
	private Boolean state;
	private String city;
	private String address;
	private String shortable;
	private String shortDescription;
	private String photo;
	private String fax;
	private String webSite;
	private String registerCapital;
	private Date foundationTime;
	private Integer staffSize;
	private Integer factoryArea;
	private String equipment;
	private Integer bigSlab;
	private Integer rawStone;
	private Integer standardSlab;
	private String product;
	private String other;
	private String contactPerson;
	private String duty;
	private String phone;
	private String email;
	private Integer displayFlag;
	private String lnglat;
	private Set<ProviderStone> providerStones = new HashSet<ProviderStone>(0);

	// Property accessors

	public String getName() {
		return this.name;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Boolean getState() {
		return this.state;
	}

	public void setState(Boolean state) {
		this.state = state;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getShortable() {
		return shortable;
	}

	public void setShortable(String shortable) {
		this.shortable = shortable;
	}

	public String getShortDescription() {
		return shortDescription;
	}

	public void setShortDescription(String shortDescription) {
		this.shortDescription = shortDescription;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public Set<ProviderStone> getProviderStones() {
		return providerStones;
	}

	public void setProviderStones(Set<ProviderStone> providerStones) {
		this.providerStones = providerStones;
	}

	public String getWebSite() {
		return webSite;
	}

	public void setWebSite(String webSite) {
		this.webSite = webSite;
	}

	public String getRegisterCapital() {
		return this.registerCapital;
	}

	public void setRegisterCapital(String registerCapital) {
		this.registerCapital = registerCapital;
	}

	public Date getFoundationTime() {
		return this.foundationTime;
	}

	public void setFoundationTime(Date foundationTime) {
		this.foundationTime = foundationTime;
	}

	public Integer getStaffSize() {
		return this.staffSize;
	}

	public void setStaffSize(Integer staffSize) {
		this.staffSize = staffSize;
	}

	public Integer getFactoryArea() {
		return this.factoryArea;
	}

	public void setFactoryArea(Integer factoryArea) {
		this.factoryArea = factoryArea;
	}

	public String getEquipment() {
		return this.equipment;
	}

	public void setEquipment(String equipment) {
		this.equipment = equipment;
	}

	public Integer getBigSlab() {
		return this.bigSlab;
	}

	public void setBigSlab(Integer bigSlab) {
		this.bigSlab = bigSlab;
	}

	public Integer getRawStone() {
		return this.rawStone;
	}

	public void setRawStone(Integer rawStone) {
		this.rawStone = rawStone;
	}

	public Integer getStandardSlab() {
		return this.standardSlab;
	}

	public void setStandardSlab(Integer standardSlab) {
		this.standardSlab = standardSlab;
	}

	public String getProduct() {
		return this.product;
	}

	public void setProduct(String product) {
		this.product = product;
	}

	public String getOther() {
		return this.other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public String getContactPerson() {
		return this.contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	public String getDuty() {
		return this.duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getDisplayFlag() {
		return displayFlag;
	}

	public void setDisplayFlag(Integer displayFlag) {
		this.displayFlag = displayFlag;
	}

	public String getLnglat() {
		return lnglat;
	}

	public void setLnglat(String lnglat) {
		this.lnglat = lnglat;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Provider) {
			Provider p = (Provider) obj;
			if (p != null && p.getId() == id)
				return true;
		}
		return false;
	}

	@Override
	public int hashCode() {
		int base = 37;
		return base * 5 + getId().hashCode();
	}
}